package com.nikunj.www.hibernate.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nikunj.www.hibernate.dao.PersonDAO;
import com.nikunj.www.hibernate.model.Person;
import com.nikunj.www.hibernate.service.PersonService;

@Service
public class PersonServiceImpl implements PersonService {

	@Autowired
	private PersonDAO personDAO;

	@Transactional
	public List<Person> getPersons() {
		return personDAO.getPersons();
	}
}
